
App.Util = {
    sessionCrypt                : null
    
    // getSessionCrypt
    , getSessionCrypt : function( aOnSuccess ) {
        if ( this.sessionCrypt != null ) {
            aOnSuccess( this.sessionCrypt );
            return;
        }
        
        var cmd = new App.cmd.client.TCmdGetCryptKey();
        
        cmd.on( 'result', function( aResponse ) {
            //console.dir( aResponse );
            this.sessionCrypt = new App.TBlowfish( aResponse.key.get() );
            aOnSuccess( this.sessionCrypt );
        }, this );
        
        cmd.send();
    }
}